package com.gorkr.cronback.pattern.designPattern.proxy;

import java.util.Calendar;

/**
 * @author gorkr
 * @title: CronPatternInterface
 * @projectName cron
 * @description: TODO
 * @date 2021/12/27 11:08
 */
public interface CronPatternInterface {

    /**
     *
     * 给定时间是否匹配定时任务表达式
     *
     * @param calendar 时间
     * @return 如果匹配返回 {@code true}, 否则返回 {@code false}
     */
    boolean match(Calendar calendar) throws Exception;
}
